<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="com.witframework.web.mvc.WebContext,com.witframework.optimize.TraceFoot"%>
<%@ include file="/basecore/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<%@ include	file="/WEB-INF/classes/com/witframework/webroot/framework/common/meta.jsp"%>
		<%@ include	file="/WEB-INF/classes/com/witframework/webroot/framework/common/menumeta.jsp"%>			
		<%@ include	file="/WEB-INF/classes/com/witframework/webroot/framework/common/componentsmeta.jsp"%>
		<script type="text/javascript" src="${contextPath}/dwr/interface/TraceMsg.js"></script>
		<style type="text/css">
			<!--
			body,td,th {
				font-family: teemlink;
			}
			body {
				margin-left: 0px;
				margin-top: 0px;
				margin-right: 0px;
				margin-bottom: 0px;
			}
			a {
				text-decoration: none;
				font-size: 12px;				
				color: #636365;
			}
			a:active {
				color: #636365;
			}
			span {
				font-size: 9pt;
				TEXT-ALIGN: center;
				cursor: hand;
				color: #000;
				background-repeat: no-repeat;
				display: block;
				background-position: left top;
				padding: 3px 0px 0px 0px;
				float: left;
				width: 78px;
				height: 20px
			}
			-->
		</style>
	</head>
	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr align="right"><td id="trace">|</td></tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="384" height="41"
								background='${contextPath}/webresource/images/ground/h01.jpg'
								style="font-weight: bold; align: center; FILTER: glow(color = white, strength = 3) dropshadow(color = white, offx = 2, offy = 1, positive = 1)">
								<img width="40" height="35"
									src='${contextPath}/webresource/images/Leaf.bmp' />
								<FONT face="Dotum" color="#999999" size=4>System </FONT>								
							</td>
							<td
								background='${contextPath}/webresource/images/ground/h02.jpg'>
								<table width="458" border="0" align="right" cellpadding="0"
									cellspacing="0">
									<tr>
										<td width="228">
											<img
												src='${contextPath}/webresource/images/ground/h03.jpg'
												width="228" height="41" />
										</td>
										<td	background='${contextPath}/webresource/images/ground/h04.jpg'>
											<table width="90%" border="0" align="center" cellpadding="5"
												cellspacing="0">												
												<tr>
													<td>
														<span><img src="${contextPath}/webresource/images/16x16_Home.gif">Home</span>
													</td>
													<td>
														<span>
															<a href="../logoutController.wit" target="parent">
																<img class="img16" src="${contextPath}/webresource/images/logout.png">安全退出
															</a>
														</span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

		<table width="100%" border="0" align="left" cellpadding="0"
			cellspacing="0"
			background='${contextPath}/webresource/images/ground/h05.jpg'>
			<tr height="30">
				<td>
					<table border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td align="left">
								<div class="underlinemenu">
									<ul>
										<li>
											<a href="#"> <img
													src="${contextPath}/webresource/images/meta/app.png">
												应用系统</a>
										</li>
										<li>
											<a href="#"> <img
													src="${contextPath}/webresource/images/meta/adm.png">
												系统管理</a>
										</li>
										<li>
											<a href="appsetting/index.jsp" target="app"> <img
													src="${contextPath}/webresource/images/setting.png">
												系统配置</a>
										</li>

										<li>
											<a href="appdev/index.jsp" target="app"> <img
													src="${contextPath}/webresource/images/meta/getting_started_develop.png">
												应用开发</a>
										</li>
										<li>
											<a href="components/index.jsp" target="app"> <img
													src="${contextPath}/webresource/images/meta/getting_started_develop.png">
												系统组件</a>
										</li>
										<li>
											<a href="uidemo/index.jsp" target="app"> <img
													src="${contextPath}/webresource/images/meta/getting_started_develop.png">
												uidemo</a>
										</li>
									</ul>
								</div>
							</td>
							<td align="right" width="255">
								<div class="underlinemenu">
									<ul>
										<li>
											<a href="devsetting/index.jsp" target="app"> <img
													src="${contextPath}/webresource/images/setting2.png">
												开发设置</a>
										</li>
										<li>
											<a href="console/index.jsp" target="app"> <img
													src="${contextPath}/webresource/images/meta/console.png">
												控制台</a>
										</li>
									</ul>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>			
		</table>		
	</body>
</html>
<%
WebContext webContext = new WebContext(request, response);
TraceFoot.getInstance(webContext.getUserSession().getUser().getUsername()).setTarget("main");
%>
<script>	
	setInterval("displayTrace()",15000); 	
	function displayTrace(){
		TraceMsg.getTrace("<%=webContext.getUserSession().getUser().getUsername()%>",3,'${contextPath}/webresource/images/meta/history.gif',function(data){  		
			var t=document.getElementById('trace');
			if(typeof t=='object' && typeof data=='string'){
				t.innerHTML=data;	
			}
		});			
	}
</script>